// Lang_15 [parentheses].nova // The application class. class ParenthesesApp { // Application class's "main" function. public static void main( String[] args ) { // Demonstrate the use of parentheses for the order of evaluation. // Answer = 2 * 12 = 24. Stream.writeLine( Integer.toString( 2 * ( 2 + 10 ) ) ); // A second example. // Answer = 6 * 3 = 18. Stream.writeLine( Integer.toString( ( 1 + 2 + 3 ) * ( 2 + 1 ) ) ); } }